package com.lmaye.design.patterns.behavioral.observer.demo2;

/**
 * --
 *
 * @author lmay.Zhou
 * @qq 379839355
 * @email lmay@lmaye.com
 * @date 2021/4/19 下午5:56
 * @since 1.8
 */
public class Test {
    public static void main(String[] args) {
        Rate rate = new RmbRate();
        Company company1 = new ImportCompany();
        Company company2 = new ExportCompany();
        rate.add(company1);
        rate.add(company2);
        rate.change(10);
        rate.change(-8);
    }
}
